package dao;

import java.sql.SQLException;

import entity.Gmtype;

public interface GmtypeDao {
	/*
	 * 根据id找到名字哦
	 */
      public Gmtype gettypename(int type_id) throws SQLException;
      /*
       * 增加数据
       */
      public int adddata(String type_name) throws SQLException;
      /*
       * 修改数据
       */
      public int updata(String name, int type_id) throws SQLException;
      /*
       * 删除数据根据id删除
       */
      public int deldata( int type_id) throws SQLException;
	
}